#include "UserProfileManager.h"

UserProfileManager* UserProfileManager::instance = NULL;

UserProfileManager::UserProfileManager() {
	//do my things here
}

UserProfileManager* UserProfileManager::getInstance() {
	if (instance == NULL)
		instance = new UserProfileManager();

	return instance;
}

UserProfileManager::~UserProfileManager() {
	if (instance != NULL) {
		delete instance;
		instance = NULL;
	}
}

void UserProfileManager::updateUserProfile(std::string user_id,
		std::string content_id, int rating) {
	Content content(content_id);
	Preference preference(content, rating);

	UserProfile user(user_id);
	user.addPreference(preference);
}

